#/bin/bash
WORK_PATH='/app/node/project-data-visualization/dynamic_pic_draw/'
cd $WORK_PATH
echo "先清除老代码"
git reset --hard origin/master
git clean -f
echo "拉取最新代码"
git pull origin master
echo "开始执行构建"
docker build -t vue-front .
echo "停止并删除旧容器"
docker stop vue-front-container 
docker rm vue-front-container
echo "启动新容器"
docker compose -f /app/myconf/warningSystem.yaml up -d
